Optimal. Leaf size=29 \[ \frac{a c \sin (e+f x) \cos (e+f x)}{2 f}+\frac{a c x}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0183067, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.045, Rules used = {2734} \[ \frac{a c \sin (e+f x) \cos (e+f x)}{2 f}+\frac{a c x}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2734
Rubi steps
\begin{align*} \int (a+a \sin (e+f x)) (c-c \sin (e+f x)) \, dx &=\frac{a c x}{2}+\frac{a c \cos (e+f x) \sin (e+f x)}{2 f}\\ \end{align*}
Mathematica [A] time = 0.0241253, size = 25, normalized size = 0.86 \[ \frac{a c (2 (e+f x)+\sin (2 (e+f x)))}{4 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.013, size = 40, normalized size = 1.4 \begin{align*}{\frac{1}{f} \left ( -ca \left ( -{\frac{\sin \left ( fx+e \right ) \cos \left ( fx+e \right ) }{2}}+{\frac{fx}{2}}+{\frac{e}{2}} \right ) +ca \left ( fx+e \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.18982, size = 50, normalized size = 1.72 \begin{align*} -\frac{{\left (2 \, f x + 2 \, e - \sin \left (2 \, f x + 2 \, e\right )\right )} a c - 4 \,{\left (f x + e\right )} a c}{4 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.50889, size = 66, normalized size = 2.28 \begin{align*} \frac{a c f x + a c \cos \left (f x + e\right ) \sin \left (f x + e\right )}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.406081, size = 70, normalized size = 2.41 \begin{align*} \begin{cases} - \frac{a c x \sin ^{2}{\left (e + f x \right )}}{2} - \frac{a c x \cos ^{2}{\left (e + f x \right )}}{2} + a c x + \frac{a c \sin{\left (e + f x \right )} \cos{\left (e + f x \right )}}{2 f} & \text{for}\: f \neq 0 \\x \left (a \sin{\left (e \right )} + a\right ) \left (- c \sin{\left (e \right )} + c\right ) & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.9982, size = 31, normalized size = 1.07 \begin{align*} \frac{1}{2} \, a c x + \frac{a c \sin \left (2 \, f x + 2 \, e\right )}{4 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]